package com.unione.unione_network.tcp_socket.bean

/**
 *  总任务
 */
data class ShelfTaskAGVMsg(
    val cmd: String = "",
    val cmd_ext: String = "",
    val carryID: String = "",
    val tasks: List<ShelfTask>
)

/**
 *  子任务 取放
 */
data class ShelfTask(
    val pickUpShelfID: String = "",
    val pickUpShelfPosition: Int = 0,
    val pickUpPointID: String = "",
    val pickDownShelfID: String = "",
    val pickDownShelfPosition: Int = 0,
    val pickDownPointID: String = "",
    val boxNo: String = "",
)

/**
 *  门控通知
 */
data class DoorControlAGVMsg(
    val cmd: String = "",
    val cmd_ext: String = "",
    val doorNo: String = "",
    val action: Int = 0
)

/**
 *  到达货架
 */
data class ArriveShelfAGVMsg(
    val cmd: String = "",
    val cmd_ext: String = "",
    val carryID: String = "",
    val robotNo: String = "",
    val currentShelfPointID: String = ""
)

/**
 *  调整位置
 */
data class AdjustPositionAGVMsg(
    val cmd: String = "",
    val cmd_ext: String = "",
)

/**
 *  反馈任务
 */
data class UpdateShelfTaskAGVMsg(
    val cmd: String = "",
    val cmd_ext: String = "",
    val actions: List<TaskAction>
)

data class TaskAction(
    val shelfID: String = "",
    val shelfPosition: Int = 0,
    val boxNo: String = "",
    val action: String = "",
    val state: Int = 0
)





